<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../../../../header.jsp"%>
<script type="text/javascript">
function selectOrganization() {
	$.openDialog("#dialog",
			{height:350,
			width:300,
			minHeight:350,
			minWidth:300,
			loadPage:ctx+"/biz/system/organ/query.jsp",
			title:"组织机构"},
			function(data) {
				location.href = "edit.do?id=" + data.data("id");
			});
}

$(document).ready(function() {
	$("#ourOrganList").jslist({
		core: { 
			countUrl:"ourCount.json",
			listUrl:"ourList.json",
			columnMetadatas:[{title:"名称",name:"name"},
							{width:85,title:"简称",name:"shortName"},
							//{width:75,title:"编码",name:"code"},
							{width:180,title:"上级",name:"parentName"}]},
		title:{title:"",titleType:"gridHeader",
			buttons:[ 
				{script:"<a class='btn' href='javascript:;'><i class='icon-indent-left'></i>查看树型视图</a>",
				eventHandler:{
					"click":function() {
						selectOrganization();
					}
				}
			}]},
		plugins:["title","filter","cud"]
	}).jslist("refresh");

});

</script>

<div class="border bg">

<div class="page-header">
<h2>组织机构管理</h2>
</div>

<div id="ourOrganList" >
</div>

</div>

<%@ include file="../../../../../footer.jsp"%>